import type { ExtractProps } from '@/utils/type'
import styleVar from '@/styles/variable.module.scss'
import { toStrFirstCase } from '@/utils'
import { Tab } from '@/components'

namespace TabItem {
  export const name = toStrFirstCase(`${styleVar.namespace}TabItem`)
  export const props = {
    value: {
      type: Tab.props.modelValue,
      required: true as const
    },
    disabled: Boolean,
    label: [String, Number]
  }
  export type Props = ExtractProps.Types<typeof props>
  export const Component = <{
    new(): {
      $props: Props
    }
  }>{}
}
export default TabItem